<!-- <template>
  <h2 class="animate__animated animate__backInDown">我们的合作伙伴</h2>
  <p class="animate__animated animate__backInDown" style="margin-bottom: 30px;">感谢以下企业提供对应接口支持。</p>

  <el-row
    :gutter="20"
    justify="center"
    class="animate__animated animate__backInUp"
  >
    <el-col
      v-for="(partner, index) in partners"
      :key="index"
      :span="6"
    >
      <a
        :href="partner.website"
        target="_blank"
        rel="noopener noreferrer"
        class="partner-link"
      >
        <div class="partner-card">
          <img
            :src="partner.logo"
            :alt="partner.name"
            class="partner-logo"
          />
          <h4>{{ partner.name }}</h4>
          <p>{{ partner.description }}</p>
        </div>
      </a>
    </el-col>
  </el-row>
  <p class="contact-info animate__animated animate__backInUp">
    如有合作意向，请发送邮件至：
    <a
      href="mailto:652985849@qq.com"
      class="email-link"
    >652985849@qq.com</a>
  </p>
</template> -->
<!-- 
<script>
export default {
  data() {
    return {
      partners: [
        {
          name: "阿里云",
          description: "在图像存储和服务器提供技术支持。",
          logo: require("../../assets/company/aliyun.jpg"),
          website: "https://www.aliyun.com/",
        },
      ],
    };
  },
  methods: {},
};
</script> -->
<!-- 
<style scoped>
.partner-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
  margin-bottom: 20px;
}

.partner-card:hover {
  transform: translateY(-5px);
}

.partner-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}
.partner-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.contact-info {
  margin-top: 40px;
  font-size: 18px;
  color: #333;
  text-align: center;
}

.email-link {
  color: #1e90ff;
  text-decoration: underline;
}
</style> -->


<template>
  <div class="cooperate-container">
    <h2 class="animate__animated animate__backInDown">我们的合作伙伴</h2>
    <p class="animate__animated animate__backInDown subtitle">感谢以下企业提供对应接口支持。</p>

    <el-row
      :gutter="20"
      justify="center"
      class="animate__animated animate__backInUp partners-container"
    >
      <el-col
        v-for="(partner, index) in partners"
        :key="index"
        :xs="24"
        :sm="12"
        :md="8"
        :lg="6"
        class="partner-col"
      >
        <a
          :href="partner.website"
          target="_blank"
          rel="noopener noreferrer"
          class="partner-link"
        >
          <div class="partner-card">
            <img
              :src="partner.logo"
              :alt="partner.name"
              class="partner-logo"
            />
            <h4 class="partner-name">{{ partner.name }}</h4>
            <p class="partner-description">{{ partner.description }}</p>
          </div>
        </a>
      </el-col>
    </el-row>
    <p class="contact-info animate__animated animate__backInUp">
      如有合作意向，请发送邮件至：
      <a
        href="mailto:652985849@qq.com"
        class="email-link"
      >652985849@qq.com</a>
    </p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      partners: [
        {
          name: "阿里云",
          description: "在图像存储和服务器提供技术支持。",
          logo: require("../../assets/company/aliyun.jpg"),
          website: "https://www.aliyun.com/",
        },
      ],
    };
  },
  methods: {},
};
</script>

<style scoped>
.cooperate-container {
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.subtitle {
  margin-bottom: 30px;
  font-size: 1rem;
}

.partners-container {
  width: 100%;
}

.partner-col {
  margin-bottom: 20px;
}

.partner-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-5px);
}

.partner-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.partner-name {
  font-size: 1.2rem;
  margin: 10px 0;
}

.partner-description {
  font-size: 0.9rem;
  line-height: 1.4;
  flex-grow: 1;
}

.partner-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.contact-info {
  margin-top: 40px;
  font-size: 1rem;
  color: #333;
  text-align: center;
  padding: 0 10px;
}

.email-link {
  color: #1e90ff;
  text-decoration: underline;
}

/* 平板设备 */
@media (min-width: 768px) {
  .subtitle {
    font-size: 1.2rem;
  }
  
  .partner-logo {
    width: 100px;
    height: 100px;
  }
  
  .partner-name {
    font-size: 1.3rem;
  }
  
  .partner-description {
    font-size: 1rem;
  }
  
  .contact-info {
    font-size: 1.1rem;
  }
}

/* 桌面设备 */
@media (min-width: 1024px) {
  .cooperate-container {
    padding: 0 3%;
  }
  
  .subtitle {
    font-size: 1.3rem;
  }
  
  .partner-name {
    font-size: 1.5rem;
  }
  
  .contact-info {
    font-size: 1.2rem;
  }
}

/* 大屏幕设备 */
@media (min-width: 1200px) {
  .partner-logo {
    width: 120px;
    height: 120px;
  }
  
  .partner-name {
    font-size: 1.7rem;
  }
}
</style>